<template>
  <div>
    <el-button type="warning"  size="small" v-print="'#calendar'">打印</el-button>
    <div class="print"> 
      <el-calendar v-model="value" id="calendar">
      </el-calendar>
    </div>
</div>
</template>

<script>
export default {
// vue-print-nb 自定义指令v-print实现打印
  components:{
  },
  data(){
    return {
      value: new Date(),
      
    }
  },
  methods:{},
}
</script>

<style scoped>
*{
  font-size: 16px;
}
b{
  font-weight: bold;
}
thead{
  border-top: 1px solid #000;
  /* border-bottom: 1px solid #000; */
}
.center{
  text-align: center;
  margin: auto;
}
.right{
  text-align: right;
}
.text{
  border-bottom: 3px double black;
  font-size: 18px;
  font-weight: bold;
}
.between{
  display: flex;
  justify-content: space-between;
  margin: 10px auto;
}
.between p{
  flex: 1;
}
table{
  table-layout:fixed;
}
.info{
  width: 80%;
}
.table{
  margin-bottom: 20px;
}
tr{
  height: 30px;
  line-height: 30px;
  border-top: 1px solid black;
}
.top{margin-top: 10px}
@page{
  size: auto A4 landscape;
  margin: 15mm 13mm;
}
@media print{

}
</style>
